package model

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(40)"`
}
type Role struct {
	gorm.Model
	Name string `gorm:"type:varchar(40)"`
}
type Node struct {
	gorm.Model
	Name string `gorm:"type:varchar(40)"`
}
type UserNode struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Repo struct {
	gorm.Model
	RepoName string `gorm:"type:varchar(40)"`
	RepoNum  string `gorm:"type:varchar(40)"`
	RepoCode string `gorm:"type:varchar(40)"`
}
type RepoOrder struct {
	gorm.Model
	OrderAdder string `gorm:"type:varchar(40)"`
	OrderNum   string `gorm:"type:varchar(40)"`
	Rid        int    `gorm:"type:int"`
}
type RepoOrderList struct {
	Id         int
	RepoName   string
	RepoNum    string
	RepoCode   string
	OrderAdder string
	OrderNum   string
}
